import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
  {
    path: '/',
    component: () => import('@/components/layout.vue'),
    redirect: '/templateChange',
    children: [
      {
        path: 'templateChange',
        component: () => import('@/pages/templateChange/index.vue'),
      },
      {
        path: 'home',
        component: () => import('@/pages/home/index.vue'),
      },
    ],
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
